home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1997 August
/
Walnut Creek CDROM.7z
/
LISTINGS
/
V_12_01
/
LETTERS.ZIP
/
PIZZA.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-09-14
|
317 b
|
21 lines
// pizza.cpp
#include <iostream.h>
#include <string.h>
struct PIZZA
{
int key;
char stuff[10];
};
main()
{
PIZZA *myPizza = new PIZZA[10];
myPizza->key = 0;
strcpy(myPizza->stuff,"good food");
cout << myPizza[0].key << ": " << myPizza[0].stuff << endl;
return 0;
}